import request from '@/utils/request'

// 查询管理体系列表
export function listOpmFoodSafeSystem(query) {
  return request({
    url: '/food/opmFoodSafeSystem/list',
    method: 'get',
    params: query
  })
}

// 查询管理体系详细
export function getOpmFoodSafeSystem(id) {
  return request({
    url: '/food/opmFoodSafeSystem/' + id,
    method: 'get'
  })
}

// 新增管理体系
export function addOpmFoodSafeSystem(data) {
  return request({
    url: '/food/opmFoodSafeSystem',
    method: 'post',
    data: data
  })
}

// 修改管理体系
export function updateOpmFoodSafeSystem(data) {
  return request({
    url: '/food/opmFoodSafeSystem',
    method: 'put',
    data: data
  })
}

// 删除管理体系
export function delOpmFoodSafeSystem(id) {
  return request({
    url: '/food/opmFoodSafeSystem/' + id,
    method: 'delete'
  })
}
